package com.sjz.main;

import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.sjz.service.UserService;


public class UserTest {
	public static void main(String[] args) {
		ClassPathXmlApplicationContext applicationContext = new ClassPathXmlApplicationContext("beans.xml");
		UserService userService = (UserService) applicationContext.getBean("userService");
		userService.add();
	}
}
